-- GENERATED SPELL FOR [Storm Bay Warrior] --


function spell0_6371(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6371', 5283, 1)
end

function spell1_6371(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6371', 529, 1)
end

function Sorts_6371(pUnit, Event)
local choix_sorts_6371 = math.random(0, 1)
if choix_sorts_6371 == 0 then
pUnit:RegisterEvent('spell0_6371', 1, 1)
end
if choix_sorts_6371 == 1 then
pUnit:RegisterEvent('spell1_6371', 1, 1)
end
end

function mob6371_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6371', math.random(1500, 3000), 1)
end

function mob6371_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6371_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6371_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6371, 1, 'mob6371_Action')
RegisterUnitEvent(6371, 2, 'mob6371_Leave')
RegisterUnitEvent(6371, 3, 'mob6371_Kill')
RegisterUnitEvent(6371, 4, 'mob6371_Die')
